import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

const myRoutes: RouteRecordRaw[] = [
    {
        path: '/my',
        component: Layout,
        redirect: '/my',
        name: 'My',
        meta: { title: '我的帐号', icon: 'account-box-line' },
        children: [
            {
                path: 'pending-tasks',
                component: () => import('@/views/my/PendingTasks.vue'),
                name: 'PendingTasks',
                meta: { title: '待处理任务' },
                children: []
            },
            {
                path: 'recharge-record',
                component: () => import('@/views/my/RechargeRecord.vue'),
                name: 'MyRechargeRecord',
                meta: { title: '充值记录' },
                children: []
            },
            {
                path: 'deduction-statistics',
                component: () => import('@/views/my/DeductionStatistics.vue'),
                name: 'MyDeductionStatistics',
                meta: { title: '扣费统计' },
                children: []
            },
            {
                path: 'account-settings',
                component: () => import('@/views/my/Settings.vue'),
                name: 'AccountSettings',
                meta: { title: '帐号设置' },
                children: []
            },
        ]
    }
]

export default myRoutes;